import { StrictMode, Suspense } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import App from "./App.jsx";
console.log(process.env.NODE_ENV); // 输出当前环境，开发环境应为 'development'，生产环境应为 'production'

createRoot(document.getElementById("root")).render(
  <Suspense fallback={<div>路由加载中...</div>}>
    <StrictMode>
      <BrowserRouter>
        <App />
      </BrowserRouter>
    </StrictMode>
  </Suspense>
);
